package com.huilian.iotbox.admin.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.huilian.iotbox.admin.dao.ActivityOrderDao;
import com.huilian.iotbox.admin.service.ActivityOrderService;
import com.huilian.iotbox.data.common.ServerResponse;
import com.huilian.iotbox.data.dto.ActivityOrderDto;
import com.huilian.iotbox.data.enums.*;
import com.huilian.iotbox.data.properties.ConfigProperties;
import com.huilian.iotbox.data.properties.FileProperties;
import com.huilian.iotbox.data.vo.ActivityOrderVo;
import lombok.extern.slf4j.Slf4j;
import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.hssf.util.HSSFColor;
import org.apache.poi.ss.usermodel.Font;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TimeZone;

/**
 * @author chenqiwen
 * @CreateDate: 2022-06-13-20-03
 * @Description:
 */
@Service
@Slf4j
public class ActivityOrderServiceImpl implements ActivityOrderService {
    @Autowired
    private ActivityOrderDao activityOrderDao;


    @Override
    public ActivityOrderVo findCountDay(ActivityOrderDto activityOrderDto) {
        return activityOrderDao.findCountDay(activityOrderDto);
    }


    /**
     * 根据ID查询
     */
    @Override
    public ActivityOrderVo findActivityOrderById(Long id) {
        ActivityOrderVo activityOrderVo = activityOrderDao.findActivityOrderById(id);
        return activityOrderVo;
    }
}
